package de.sendorian.app.forumArchive.repository;


import javax.persistence.NoResultException;

import de.sendorian.app.forumArchive.domain.Forum;

public class ForumRepository extends RepositoryBase<Forum> {

	public ForumRepository() {
		super(Forum.class);
	}

	public Forum findByName(String name) {
		try {
			return findByUniqueAttribute("name", name);
		} catch (NoResultException e) {
			logger.debug("No Forum found with name " + name);
		}
		return null;
	}
}
